The Default Style Object
When QuickDraw GX first creates a style object, that object has default characteristics defined by QuickDraw GX. Every default style object has the following properties:
All other properties are zero or
- an empty tag list
- an owner count of 1
nil
, except that the value of the text size property is 12.0, and the scale value within the dash property is 1.0. The font property isnil
, which means that QuickDraw GX uses the default font in drawing text; however, your application can control what font is used for the default. See the font objects chapter in Inside Macintosh: QuickDraw GX Typography for more information.Unlike shape objects, whose default properties vary with type, there is only one
single default style object for QuickDraw GX. If the shape objects you create reference the default style object, you need to explicitly set all graphic or typographic properties for that style after you create the shape. Also unlike shape objects, you cannot change the definition of the default style object. However, you can create a style object with specific properties, and then change the definition of the default shape object so that newly created shapes reference that customized style object.